Preventing pixelization of vector fonts

Kanzi uses vector and bitmap fonts to display text. Vector fonts are rendered using textures, which means that if the font size is too small, the text can become pixelated. Do not use too large font size either, because it causes the recalculation of glyph cache on per-frame basis, which slows down your application.

To prevent pixelization of text when using vector fonts:

  1. In the Project select the object that contains text and uses vector fonts.
    For example, a Text Block or Text Layer object.
  2. Set the Text Line Height property to change the size of the displayed text.
  3. Set the Font Size property until the text is sharp.
    You can achieve the best quality when the Font Size is the same as the pixel height of the characters on the screen of the target device for your application.

See also

Using text blocks

Using text layers

Importing fonts

Measuring the performance of your Kanzi application

Best practices